<include file="Public:js" /> 
<div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="">首页</a><span class="crumb-step">&gt;</span><span class="crumb-name">修改追溯信息</span></div>
        </div>
        
        <div class="result-wrap">
            <form action="{:U('Qrcode/editZhuisuInfoSub')}" method="post" id="myform" name="myform">
            <!-- 店铺ID -->
                <input type="hidden" name="supplier_id" value="{$supplier_id}">
                <!-- 商品ID -->
                <input type="hidden" name="goods_id" value="{$goods_id}">
                <!-- 信息ID -->
                    <input type="hidden" name="id" value="{$data.id}">
                <div class="config-items">
                    <div class="config-title">
                        <h1><i class="icon-font">&#xe00a;</i>修改追溯信息</h1>
                    </div>
                    
                    <div class="result-content">
                        <table width="100%" class="insert-tab">
                            <tbody>
                            <tr>
                                 <th width="15%"><i class="require-red">*</i>类型</th>           
                               <td>
                                  <select name="cat_id">  
                                        <!-- <option value="0">顶级分类</option>   -->
                                        <volist name="row" id="val">  

                                        <?php if($val['term_id'] == $data['cat_id']){ ?>
                                            <option value="{$val.term_id}" selected = "selected"  size="85"  class="common-text">
                                            {$val['html']}{$val.name}
                                            </option>  
                                        <?php }else{ ?> 
                                          <option value="{$val.term_id}"  size="85"  class="common-text">
                                            {$val['html']}{$val.name}
                                            </option> 
                                        <?php } ?>
                                        </volist>  
                                    </select>  
                               </td>
                                 
                            </tr>
                             <tr>
                                 <th width="15%"><i class="require-red">*</i>标题</th>
                               <td>
                                    <input type="text" value="{$data.title_name}"  style='width: 70%' datatype="*" nullmsg="请填写标题" errormsg="请填写标题"  name="title_name" class="common-text"> 
                               </td>
                                 
                            </tr>
                            <tr>
                                 <th width="15%"><i class="require-red"></i>内容</th>
                               <td>
                                    
                                    <textarea name='dcontent' style='width: 70%;height: 160px;' >
                                        {$data.dcontent}
                                    </textarea>
                               </td>
                                 
                            </tr>
                           <tr>
                                 <th width="15%"><i class="require-red"></i>作用</th>
                               <td>
                                    
                                    <textarea name='zy_con' style='width: 70%;height: 160px;' >
                                         {$data.zy_con}
                                    </textarea>
                               </td>
                                 
                            </tr>
                            <tr>
                                 <th width="15%"><i class="require-red"></i>负责人</th>
                               <td>
                                    <input type="text" value="{$data.fuzeren}" style='width: 70%'   name="fuzeren" class="common-text"> 
                               </td>
                                 
                            </tr>
                             <tr>
                                 <th width="15%"><i class="require-red"></i>商家</th>
                               <td>
                                    <input type="text" value="{$data.shangjia}"  style='width: 70%'   name="shangjia" class="common-text"> 
                               </td>
                                 
                            </tr>
                            <tr>
                                 <th width="15%"><i class="require-red"></i>添加时间</th>
                               <td>
                                    <input placeholder="请输入日期" value="{$data.add_time|date="Y-m-d H:i:s",###}" name='add_time'  class="laydate-icon" onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})"> 
                               </td>
                                 
                            </tr>
                            <tr>
                                 <th width="15%"><i class="require-red"></i>排序</th>
                               <td>
                                    <input type="text" value="{$data.sort}" style='width: 70%' datatype="n" nullmsg="请填写排序" errormsg="请填写正确排序" value='0' name="sort" class="common-text"> 
                               </td>
                                 
                            </tr>

                            <tr>
                                 <th width="15%"><i class="require-red"></i>是否显示</th>
                               <td>
                                   <input type="radio" checked="true" <if condition="$data.is_open eq 1 ">checked='true' </if> name="is_open" value='1' id="">显示
                                   <input type="radio" name="is_open" id="" <if condition="$data.is_open eq 0 ">checked='true' </if> value='0'>不显示
                               </td>
                                 
                            </tr>
                            <tr>
                                <th></th>
                                <td>
                                  
                                    <input type="submit" value="提交" class="btn btn-primary btn6 mr10">
                                    <input type="button" value="返回" onclick="history.go(-1)" class="btn btn6">
                                </td>
                            </tr>

                            </tbody></table>
                    </div>
                </div>
                </form>
                
        </div>
    </div>

<script type="text/javascript">
$(function(){
	
	 $("#myform").Validform({
	    
	 });  //就这一行代码！;
		
	  
	
})
</script>